﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace JuCheap.Core.Models.ViewModels
{
    public class WorkerViewModel
    {
        public int Id { get; set; }
        [Display(Name = "用户名")]
        [Required(ErrorMessage = Message.Required)]
        public string Name { get; set; }
        [Display(Name = "第三方id")]
        [Required(ErrorMessage = Message.Required)]
        public string ExtenralId { get; set; }
        public string CompanyName { get; set; }
        [Display(Name = "公司")]
        [Range(0, int.MaxValue, ErrorMessage = "请选择公司名称")]
        [Required(ErrorMessage = "请选择公司名称")]
        public int? CompanyId { get; set; }
        public string JobPositionTypeName { get; set; }
        [Display(Name = "岗位类别")]
        [Range(0, int.MaxValue, ErrorMessage = "请选择岗位类别")]
        [Required(ErrorMessage = "请选择岗位类别")]
        public int? JobPositionTypeId { get; set; }
        public string JobPositionName { get; set; }

        [Display(Name = "岗位名称")]
        [Range(0, int.MaxValue, ErrorMessage = "请选择岗位名称")]
        [Required(ErrorMessage = "请选择岗位名称")]
        public int? JobPositionId { get; set; }
        [Display(Name = "识别头像")]
        public string IdentificationHeadImageUrl { get; set; }
        [Display(Name = "个性头像")]
        public string UserHeadImageUrl { get; set; }
        [Display(Name = "手机号")]
        [MinLength(11, ErrorMessage = "手机号11位")]
        [MaxLength(11, ErrorMessage = "手机号11位")]
        [Required(ErrorMessage = "手机号不能为空")]
        public string PhoneNumber { get; set; }
        [Display(Name = "昵称")]
        [Required(ErrorMessage = Message.Required)]
        public string NickName { get; set; }
        [Display(Name = "生日")]
        public DateTime Birthday { get; set; } = new DateTime(1980, 6, 15);
        [Display(Name = "邮箱")]
        public string Email { get; set; }
        [Display(Name = "证件类型")]
        [Required(ErrorMessage = Message.Required)]
        public int CardType { get; set; }
        [Display(Name = "证件号码")]
        [Required(ErrorMessage = Message.Required)]
        public string CardNumber { get; set; }
        [Display(Name = "员工工号")]
        [Required(ErrorMessage = Message.Required)]
        public string Remark { get; set; }
        [Display(Name = "性别")]
        [Required(ErrorMessage = Message.Required)]
     
        public int Gender { get; set; }
        [Display(Name = "组")]
        public string GroupIds { get; set; }

        [Display(Name = "班次名称")]
        public int BanCiId { get; set; }

        [Display(Name = "状态")]
        public int Status { get; set; }//ht20190519
    }
}
